/* 页面主容器 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F8F2FF;
    color: #1D1B20;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

/* 页头 */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    color: #49454F;
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 内容布局 */
.content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1800px;
    margin: 0 auto;
}

/* 表单容器 */
.form-container {
    width: 25%;
    min-width: 450px;
    background-color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 动画容器 */
.animation-container {
    width: 75%;
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    height: auto;
    min-height: 1000px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 滑块容器 */
#freefallForm {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.slider-container {
    margin: 0;
    position: relative;
}

/* 滑块标签 */
.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-name {
    font-size: 1rem;
    font-weight: 500;
    color: #1D1B20;
}

.slider-value {
    font-size: 1rem;
    font-weight: 500;
    color: #1D1B20;
    position: absolute;
    right: 0;
    top: 0;
}

/* 简化滑块样式 - 去掉渐变填充 */
input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #E8DEF8;
    outline: none;
    margin: 10px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #6750A4;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #6750A4;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* 按钮 */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.button-primary {
    background-color: #6750A4;
    color: white;
}

.button-secondary {
    background-color: #E8DEF8;
    color: #1D1B20;
}

/* 结果容器 */
.result-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #F7F2FA;
    border-radius: 12px;
}

.result-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.result-item:last-child {
    border-bottom: none;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .content {
        flex-direction: column;
    }
    
    .form-container, .animation-container {
        width: 100%;
    }

    .animation-container {
        min-height: 500px;
    }
}
